import { Component, Input, OnInit } from "@angular/core";

@Component({
  selector: "page-title",
  template: `
    <div class="row">
      <div class="col-lg-12 col-md-12">
        <div class="portlet">
          <h3 class="page-title" >{{o.title}}</h3>
          <div class="page-bar">
            <ul class="page-breadcrumb">
              <li>
                <i class="fa fa-home"></i>
                <a href="javascript:void(0)">{{o.topmenu}}</a>
                <i class="fa fa-angle-right"></i>
              </li>
              <li>
                <a href="javascript:void(0)">{{o.group}}</a>
                <i class="fa fa-angle-right"></i>
              </li>
              <li>
                <a href="javascript:void(0)">{{o.title}}</a>
              </li>
            </ul>
            <!-- <div class="pull-right">
              <div class="btn2" style="background-color:#d5dade">
                <i class="fa fa-file-image-o" style="color:#FFFFFF; font-size:22px; margin-top:10px"></i>
              </div>
            </div> -->
          </div>
        </div>
      </div>
    </div>
  `
})
export class PageTitleComponent implements OnInit {

  /**
   * 此公共子组件：
   * 接受到父组件的参数 o.title   o.topmenu  o.group
   *不回传给父组件任何参数
   */
  @Input() o: any;

  constructor() {

  }

  ngOnInit(): void {
  }

}
